<script lang="ts">
/**
 * 测试一个单文件组件
 */
export default {
  data() {
    return {
      greeting: 'hello vue',
      counter: 0,
    }
  },
}
</script>

<template>
  <slot></slot>
  <button @click="counter++">counter:{{ counter }}</button>
  <div class="greet">{{ greeting }}</div>
</template>

<style scoped>
.greet {
  color: green;
}
</style>
